import axios from '@/libs/api.request'
// 试卷列表
export const paperList = (data) => {
    return axios.request({
        url: '/examManage/paperList',
        data: data,
        method: 'post'
    })
}
// 新增试卷
export const addPaper = (data) => {
    return axios.request({
        url: '/examManage/paperAdd',
        data: data,
        method: 'post'
    })
}
// 删除试卷id
export function delPaper (obj) {
    return axios.request({
        url: '/examManage/paperDel',
        params: obj,
        method: 'get'
    })
}
// 试卷编辑/预览
export function getOnePaper (obj) {
    return axios.request({
        url: '/examManage/paperInfo',
        params: obj,
        method: 'get'
    })
}
// 编辑试卷
export function updatePaper (data) {
    return axios.request({
        url: '/examManage/paperUpdate',
        data: data,
        method: 'post'
    })
}
// 智能组卷
export function smartPaper (data) {
    return axios.request({
        url: '/examManage/paperProduce',
        data: data,
        method: 'post'
    })
}
// 新增考试
export function addExam (data) {
    return axios.request({
        url: '/examManage/addExam',
        data: data,
        method: 'post'
    })
}
// 考试列表

export function getExam (data) {
    return axios.request({
        url: '/examManage/examList',
        data: data,
        method: 'post'
    })
}
// 发布考试
export function releaseExam (obj) {
    return axios.request({
        url: '/examManage/releaseExam',
        params: obj,
        method: 'get'
    })
}
// 删除考试
export function deleteExam (obj) {
    return axios.request({
        url: '/examManage/deleteExam',
        params: obj,
        method: 'get'
    })
}
// 考试详情

export function getExamDetail (data) {
    return axios.request({
        url: '/examManage/examInfo',
        data: data,
        method: 'post'
    })
}
// 考试编辑
export function editExam (data) {
    return axios.request({
        url: '/examManage/updateExam',
        data: data,
        method: 'post'
    })
}
// 强制收卷
export function forceExam (data) {
    return axios.request({
        url: '/examManage/forceCommit',
        data: data,
        method: 'post'
    })
}
// 阅卷
export function markExam (data) {
    return axios.request({
        url: '/examManage/markExam',
        data: data,
        method: 'post'
    })
}
// 获取分类下试题数量
export function paperSort (data) {
    return axios.request({
        url: '/examManage/paperSort',
        data: data,
        method: 'post'
    })
}
